package com.zhouyu.service;

import org.springframework.beans.factory.BeanNameAware;
import org.springframework.stereotype.Component;

import javax.annotation.Priority;

@Component
@Priority(2)
public class OrderService1 implements BeanNameAware, OrderInterface {

	private String beanName;

	public OrderService1()
	{
	}

	@Override
	public void setBeanName(String name)
	{
		beanName = name;
	}

	@Override
	public String toString()
	{
		return "OrderService{" +
				"beanName='" + beanName + '\'' +
				'}';
	}
}
